package com.hmall.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;
import com.hmall.search.domain.po.ItemDoc;
import com.hmall.search.domain.query.ItemPageQuery;
import com.hmall.search.domain.vo.PageVO;

import java.util.List;
import java.util.Map;

/**
 * ClassName: SearchService
 * Package:
 * Description
 *
 * @Author xw
 * @Create 2023/12/22 17:48
 */
public interface SearchService  {
    List<String> getSuggestion(String prefix);

    // 过滤项聚合功能
    Map<String, List<String>> searchPost(ItemPageQuery query);

    // 实现基本搜索功能
    PageVO<ItemDoc> search(ItemPageQuery query);


    // 修改商品状态
    void saveItemById(Long itemId);

    void deleteItemById(Long itemId);
}
